package com.ywjh.inter.entity;

import java.sql.Timestamp;

public class DataInsulinEntity {
	@Override
	public String toString() {
		return "DataInsulinEntity [id=" + id + ", doc_id=" + doc_id + ", add_time=" + add_time + ", check_time="
				+ check_time + ", status=" + status + ", patient_id=" + patient_id + ", data=" + data + ", memo=" + memo
				+ ", type=" + type + ", getMemo()=" + getMemo() + ", getData()=" + getData() + ", getType()="
				+ getType() + ", getPatient_id()=" + getPatient_id() + ", getId()=" + getId() + ", getDoc_id()="
				+ getDoc_id() + ", getAdd_time()=" + getAdd_time() + ", getCheck_time()=" + getCheck_time()
				+ ", getStatus()=" + getStatus() + ", getClass()=" + getClass() + ", hashCode()=" + hashCode()
				+ ", toString()=" + super.toString() + "]";
	}
	private int id;
	private int doc_id;
	private Timestamp add_time;
	private Timestamp check_time;
	private int status;
	private int patient_id;
	private float data;
	private String memo;
	
	
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	//1 最大剂量 2警示 3基础率 4排期
	private int type;
	
	
	
	public float getData() {
		return data;
	}
	public void setData(float data) {
		this.data = data;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public int getPatient_id() {
		return patient_id;
	}
	public void setPatient_id(int patient_id) {
		this.patient_id = patient_id;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getDoc_id() {
		return doc_id;
	}
	public void setDoc_id(int doc_id) {
		this.doc_id = doc_id;
	}
	public Timestamp getAdd_time() {
		return add_time;
	}
	public void setAdd_time(Timestamp add_time) {
		this.add_time = add_time;
	}
	public Timestamp getCheck_time() {
		return check_time;
	}
	public void setCheck_time(Timestamp check_time) {
		this.check_time = check_time;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((add_time == null) ? 0 : add_time.hashCode());
		result = prime * result + ((check_time == null) ? 0 : check_time.hashCode());
		result = prime * result + Float.floatToIntBits(data);
		result = prime * result + doc_id;
		result = prime * result + id;
		result = prime * result + ((memo == null) ? 0 : memo.hashCode());
		result = prime * result + patient_id;
		result = prime * result + status;
		result = prime * result + type;
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		DataInsulinEntity other = (DataInsulinEntity) obj;
		if (add_time == null) {
			if (other.add_time != null)
				return false;
		} else if (!add_time.equals(other.add_time))
			return false;
		if (check_time == null) {
			if (other.check_time != null)
				return false;
		} else if (!check_time.equals(other.check_time))
			return false;
		if (Float.floatToIntBits(data) != Float.floatToIntBits(other.data))
			return false;
		if (doc_id != other.doc_id)
			return false;
		if (id != other.id)
			return false;
		if (memo == null) {
			if (other.memo != null)
				return false;
		} else if (!memo.equals(other.memo))
			return false;
		if (patient_id != other.patient_id)
			return false;
		if (status != other.status)
			return false;
		if (type != other.type)
			return false;
		return true;
	}
	
	
	
}
